﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Messages
{
    public class JsonClass
    {
        private string info;
        private string data;
        private int sta;

        public JsonClass(string info, string data, int sta)
        {
            this.info = info;
            this.data = data;
            this.sta = sta;
        }
        public string Info
        {
            get { return info; }
            set { info = value; }
        }

        public string Data
        {
            get { return data; }
            set { data = value; }
        }

        public int Sta
        {
            get { return sta; }
            set { sta = value; }
        }

        ////重写ToString()方法，以便输出格式是标准的JSON格式 
        //public override string ToString()
        //{
        //    return "{/"data / ":/"" + data + " / ",/"info / ":/"" + info + " / ",/"sta / ":" + sta + "}";
        //}

    }
}